package Demo1;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 34255
 * Date: 2024-05-21
 * Time: 18:07
 */
public class Test {
    void func(computer computer){
        computer.open();
        computer.useUsbDevice(new mouse());
        computer.useUsbDevice(new keyboard());
        computer.close();
    }
    public static void main(String[] args) {
        Test t = new Test();
        computer computer = new computer();
        t.func(computer);
    }
}
